package com.elf.zero.step;

import android.content.Context;
import android.media.MediaDrm;

import com.elf.zero.config.ConfigManagerImplSp;

public class StepConfigManger extends ConfigManagerImplSp {

    public static Context mContext;

    public static StepConfigManger mInstance;

    public static void init(Context context) {
        mContext = context;
    }

    public synchronized static StepConfigManger get() {
        if (mInstance == null) {
            mInstance = new StepConfigManger(mContext);
        }
        return mInstance;
    }

    public StepConfigManger(Context context) {
        super(context, "step_config");
    }


    private final static String key_system_step = "key_system_step";
    private final static String key_show_notification = "key_show_notification";

    public void setSystemStep(long value) {
        putLong(key_system_step, value);
    }

    public long getSystemStep() {
        return getLong(key_system_step, 0);
    }

    public void setShowNotification(boolean value) {
        putBoolean(key_show_notification, value);
    }

    public boolean getShowNotification() {
        return getBoolean(key_show_notification, true);
    }

}
